package com.zja.www.entity;
import java.sql.Timestamp;


public class Schedule {
    private int id;
    private int doctorId;
    private Timestamp date;
    private String startTime;
    private String endTime;
    private int maxAppointments;
    private int bookedAppointments;

    public Schedule() {
    }

    public Schedule(int id, int doctorId, Timestamp date, String startTime, String endTime, int maxAppointments, int bookedAppointments) {
        this.id = id;
        this.doctorId = doctorId;
        this.date = date;
        this.startTime = startTime;
        this.endTime = endTime;
        this.maxAppointments = maxAppointments;
        this.bookedAppointments = bookedAppointments;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(int doctorId) {
        this.doctorId = doctorId;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public int getMaxAppointments() {
        return maxAppointments;
    }

    public void setMaxAppointments(int maxAppointments) {
        this.maxAppointments = maxAppointments;
    }

    public int getBookedAppointments() {
        return bookedAppointments;
    }

    public void setBookedAppointments(int bookedAppointments) {
        this.bookedAppointments = bookedAppointments;
    }

    @Override
    public String toString() {
        return "Schedule{" +
                "id=" + id +
                ", doctorId=" + doctorId +
                ", date=" + date +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", maxAppointments=" + maxAppointments +
                ", bookedAppointments=" + bookedAppointments +
                '}';
    }
}
